package controller

import (
	"github.com/gin-gonic/gin"
	"jsjb/app/jsjb/model"
	"net/http"
)

func QueryMenu(c *gin.Context) {
	//model.QueryRules(model.AuthRule{})
	rules, e := model.QueryRules(model.AuthRule{})
	if e != nil {
		c.JSON(http.StatusOK, gin.H{
			"err": e,
		})
		return
	}
	c.JSON(http.StatusOK, gin.H{
		"data": rules,
	})

}
